/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.faimg.pomar;

import br.faimg.pomar.visual.TelaPrincipal;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author diogo
 */
public class PomarMain {

    public static void main(String[] args) {

        try {
            // Set cross-platform Java L&F (also called "Metal")
            UIManager.setLookAndFeel(
            UIManager.getSystemLookAndFeelClassName());
        } catch (UnsupportedLookAndFeelException e) {
            // handle exception
        } catch (ClassNotFoundException e) {
            // handle exception
        } catch (InstantiationException e) {
            // handle exception
        } catch (IllegalAccessException e) {
            // handle exception
        }

        TelaPrincipal view = new TelaPrincipal();
        
        //OperadorView view = new OperadorView();
        
        view.main(args);
    
       
        /*
         * teste do cadastro de reparo
         */
//        CadastroReparo view = new CadastroReparo("1111112", "z");
//                        view.setModal(true);
//                        view.setVisible(true);
        
        
        
        /*
         * TESTE DE EXEBIÇÃO GRÁFICA DA ROTA
         */
   
//        JFrame frame = new JFrame();
//        
//        JGraph graph2 = new JGraph();
//        graph2.setModel(new RotaEstacaoGraphModel().getModel(new Integer(111111)));
//
//        //frame.getContentPane().add(new JScrollPane(graph));
//        frame.add(new JScrollPane(graph2));
//
//        frame.pack();
//        
//        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//
//        frame.setVisible(true);
        
  
        
        //teste unitário do TipodeErroBusinessDelegate
//    TipodeEstacao temp = new TipodeEstacao();
//    TipodeEstacaoBusinessDelegate delegate = new TipodeEstacaoBusinessDelegate();
//    temp = delegate.readById("TER   ");
//    
//    System.out.println("\t Teste temp: " + temp.getCodigo() + " - " + temp.getDescricao());
  
       
    
    } // final do main();
}
